<?php
//include file
include("../include/session.php");
require_once('../db_conn/conn_db.php');
require_once('../calendar/calendar/classes/tc_calendar.php');
require_once('../include/date.php');
$role = $_SESSION['status_user'];
$userid = $_SESSION['user_id'];
/////////////// WE have to find out the number of records in our table. We will use this to break the pages///////
$sql = "SELECT * from surat_perjanjian
        where id=$_GET[id]";
?>
<body onload="window.print(); window.close();">
<?php
$result = mysql_query($sql) or die(mysql_error());

$row = mysql_fetch_array($result);
echo "$row[2]";
?>
